<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>qt</title>
</head>

<body>

<?php

set_include_path('../');
error_reporting(E_ALL);

require_once('show/show.php');

require_once('input/input_validation.php');
require_once('dom/dom_element.php');
require_once('dom/dom_div.php');
require_once('dom/dom_form.php');
require_once('dom/dom_input.php');
require_once('dom/dom_button.php');
require_once('dom/dom_fieldset.php');
require_once('form/form_form.php');
require_once('form/form_element.php');
require_once('form/form_textbox.php');
require_once('form/form_fieldset.php');
require_once('form/form_submit.php');

$c = new re_dom_div();
$c	->addClass('body')
	->addClass('main');

$d = new re_dom_div();
$d	->addClass('subbody')
	->addClass('submain')
	->setId('test')
	->setHtml('thereissomethinginme');

$e = new re_form_form();
$e	->setId('test-form')->setAction('?');

$x = new re_form_fieldset();
$x	->setTitle('test fieldset');

$e ->addChild($x);

$f = new re_form_textbox('test-textbox');
$f	->addValidation('alpha');

$g = new re_form_submit();
$g->setHtml('submit')->setName('submit-btn');

$x ->addChild($f);
$x ->addChild($g);

$c	->addChild($d);
$c	->addChild($e);

echo $c;

?>

</body>
</html>